package com.feature.learn.ojcp.base;

/**
 * Copyright (C), 2015-2020, 顺丰科技有限公司
 *
 * @author 01390942
 * @Description
 * @create 2020/3/10
 * @since 1.0.0
 */
public class SwitchTest {
    public static void main(String[] args) {
        // Incompatible types. Found: 'double', required: 'char, byte, short, int, Character, Byte, Short, Integer, String, or an enum'
        switch (1) {
            case 1:
                System.out.println(1);
                break;
            case 2:
                System.out.println(2);
                break;
            default:
                break;
        }
    }
}